package com.nanrui.mutualinductor.data;


import java.nio.ByteBuffer;
import java.nio.ByteOrder;
import java.util.Arrays;

public class Packet_14
        extends DKPacket
{
    private float sBatt;
    private short sFlag;
    private short sPower;
    private float sRH;
    private float sTP;
    private long sTime;
    private short sTimeType;
    private short sWireless;

    public Packet_14()
    {
        super((short)1, (short)20);
    }

    public float getsBatt()
    {
        return this.sBatt;
    }

    public short getsFlag()
    {
        return this.sFlag;
    }

    public short getsPower()
    {
        return this.sPower;
    }

    public float getsRH()
    {
        return this.sRH;
    }

    public float getsTP()
    {
        return this.sTP;
    }

    public long getsTime()
    {
        return this.sTime;
    }

    public short getsTimeType()
    {
        return this.sTimeType;
    }

    public short getsWireless()
    {
        return this.sWireless;
    }

    @Override
    byte[] packContent()
    {
        return new byte[0];
    }

    @Override
    void unpackContent(byte[] paramArrayOfByte)
    {
        int i = 0 + 1;
        this.sTimeType = ((short)(short)(paramArrayOfByte[0] & 0xFF));
        int j = i + 1;
        this.sFlag = ((short)(short)(paramArrayOfByte[i] & 0xFF));
        i = j + 1;
        long l1 = paramArrayOfByte[j];
        j = i + 1;
        long l2 = paramArrayOfByte[i] << 8;
        int k = j + 1;
        long l3 = paramArrayOfByte[j] << 16;
        i = k + 1;
        this.sTime = (l1 & 0xFF | l2 & 0xFFFF | l3 & 0xFFFFFF | paramArrayOfByte[k] << 24 & 0xFFFFFFFF);
        j = i + 4;
        this.sTP = ByteBuffer.wrap(Arrays.copyOfRange(paramArrayOfByte, i, j)).order(ByteOrder.LITTLE_ENDIAN).getFloat();
        i = j + 4;
        this.sRH = ByteBuffer.wrap(Arrays.copyOfRange(paramArrayOfByte, j, i)).order(ByteOrder.LITTLE_ENDIAN).getFloat();
        j = i + 1;
        this.sPower = ((short)(short)(paramArrayOfByte[i] & 0xFF));
        i = j + 4;
        this.sBatt = ByteBuffer.wrap(Arrays.copyOfRange(paramArrayOfByte, j, i)).order(ByteOrder.LITTLE_ENDIAN).getFloat();
        this.sWireless = ((short)(short)(paramArrayOfByte[i] & 0xFF));
    }
}

